.service-create-nav {
    ul {
        display: table;
        width: 100%;
        padding: 0 5%;
        margin: 40px 0 20px 0;
        li {
            display: table-cell;
            text-align: center;
            position: relative;
            > div {
                width: 10px;
                height: 10px;
                margin: 0 auto;
                background-color: #efefef;
                border-radius: 100%;
                line-height: 10px;
                position: relative;
                z-index: 1;
            }
            > span {
                position: absolute;
                left: 0;
                right: 0;
                top: -20px;
                color: #ccc;
            }

            &:after {
                content: '';
                position: absolute;
                width: 100%;
                background-color: #efefef;
                height: 3px;
                left: 0;
                top: 3px;
            }

            &.done {
                > div {
                    background-color: #5adcf1;
                }
                > span {
                    color: #666;
                }
                &:after {
                    background-color: #5adcf1;
                }
            }
        }
    }
}

.service-create-container {
    margin-bottom: 70px;
    a.service-button {
        cursor: pointer;
        text-decoration: none;
        > i, > span > i {
            margin-right: 3px;
        }
    }
    .service-deployment-container {
        max-height: 55px;
        overflow-y: hidden;
        margin-bottom: 15px;
        transition: all .5s ease;
        .service-info-panel {
            > div {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
        }
        .service-form-container {
            padding: 0 10%;
            visibility: hidden;
        }
        &.opened {
            max-height: 1999px;
            overflow-y: visible;
            .service-form-container {
                visibility: visible;
            }
        }
    }

    .service-form-container {
        > .panel {
            margin-bottom: 8px;
            box-shadow: none;
        }
    }
    form {
        > .row-box {
            display: flex;
            .row-box-desc {
                width: 20%;
                position: relative;
                > div {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    color: #888
                }
            }
            .row-box-form {
                width: 80%;
                > .row {
                    .couple-form-group {
                        .couple-form-info {
                            margin-bottom: 15px;
                            .form-group {
                                display: inline-block;
                                vertical-align: top;
                                position: relative;
                                margin-bottom: 0;
                                &:first-child {
                                    width: 48%;
                                    .ui-select-container {
                                        .ui-select-match-text {
                                            width: 100%;
                                            text-overflow: ellipsis;
                                            overflow: hidden;
                                            padding-right: 10px
                                        }
                                        .ui-select-choices {
                                            width: auto;
                                            min-width: 100%;
                                            .ui-select-choices-row-inner {
                                                > div {
                                                    margin: 0 3px -3px -3px
                                                }
                                            }
                                        }
                                    }
                                }
                                &:last-child {
                                    width: 47%;
                                }
                                &.text-only {
                                    line-height: 34px;
                                }
                            }
                        }
                    }
                    .form-group {
                        > .form-control + .text-danger {
                            > a {
                                cursor: pointer;
                                text-decoration: none;
                            }
                        }
                        .ui-select-container {
                            .ui-select-choices {
                                .ui-select-choices-row {
                                    .ui-choices-cluster-small {
                                        padding: 3px 5px;
                                        font-size: 12px;
                                        font-weight: normal;
                                    }
                                    &.active {
                                        .ui-choices-cluster-small {
                                            background-color: transparent;
                                        }
                                    }
                                }
                            }
                            &.ui-select-multiple {
                                padding: 6px 12px;
                                > div {
                                    .ui-select-match {
                                        display: block;
                                        background: #eee;
                                        border-radius: 2px;
                                        > span {
                                            display: inline-block;
                                            padding: 3px;
                                            > .ui-select-match-item {
                                                margin: 0;
                                                .ui-select-match-close {
                                                    font-size: 13px;
                                                    line-height: 18px;
                                                    opacity: 0.4;
                                                    margin-left: 5px;
                                                    border-left: 1px solid #ccc;
                                                }
                                                &.btn-primary {
                                                    .ui-select-match-close {
                                                        color: #fff;
                                                        opacity: 0.7;
                                                    }
                                                }
                                            }
                                        }
                                    }
                                    input.ui-select-search {
                                        height: auto;
                                        margin-bottom: 0;
                                    }
                                    &:after {
                                        position: absolute;
                                        content: '';
                                        width: 0;
                                        height: 0;
                                        bottom: 14px;
                                        right: 13px;
                                        margin-left: 2px;
                                        border-top: 4px dashed;
                                        border-right: 4px solid transparent;
                                        border-left: 4px solid transparent;
                                    }
                                }
                                &.open {
                                    > div {
                                        input.ui-select-search::-ms-clear {
                                            display: none;
                                        }
                                        &:after {
                                            position: absolute;
                                            content: '\f002';
                                            font-family: 'FontAwesome';
                                            border: none;
                                            bottom: 23px;
                                            right: 27px;
                                            font-size: 12px;
                                        }
                                    }
                                }
                            }
                        }
                    }
                    .form-tooltip-group {
                        color: #2cb6d4;
                        margin: 20px 0;
                        word-break: break-all;
                        > i {
                            margin-right: 3px;
                        }
                    }
                }
            }
        }
    }
    .container-release-form {
        .container-release-header {
            text-align: center;
            .release-header-desc {
                color: #888;
            }
            .release-header-info {
                color: #2cb6d4;
                margin-top: 3px;
                i {
                    margin-right: 3px;
                }
                kbd {
                    margin: 0 3px;
                }
            }
        }
        .container-release-content {
            margin-bottom: 15px;
            .CodeMirror {
                .CodeMirror-scroll {
                    .CodeMirror-lines {
                        .CodeMirror-code {
                            > .line-tip:after {
                                content: 'Edit';
                                position: absolute;
                                right: 2px;
                                top: 0;
                                background-color: #5bc0de;
                                padding: 1px 3px;
                                color: #fff;
                                vertical-align: baseline;
                                border-radius: 2px;
                                z-index: 1;
                                animation: formTips .3s linear;
                            }
                        }
                    }
                }
            }
        }
    }
}

.service-autoScale-form {
    div.form-group {
        .input-group {
            > .form-control {
                padding-right: 0px;
                box-shadow: none;
                border-right: none;
            }
            > .input-group-addon {
                background-color: #fff;
                padding-left: 0px;
            }
        }
    }
}
